DetachDisk
Description
The call DetachDisk unloads a data disk from an ECS instance or unloads a system disk.
Request Method
POST
Request Path
/apsara/route/Ecs/DetachDisk
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
InstanceId | BODY | string | Yes | i-bp67acfmxazb4p**** | the ID of the ECS instance to be unloaded. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
DeleteWithInstance | BODY | boolean | No | false | when uninstalling the system disk, set the automatic release attribute. Indicates whether the system disk is released at the same time when the ECS instance is released. true: release. false: not released. The cloud disk will be preserved. default value: true. description if the data disk is unloaded, the default value is false. |
version | BODY | string | No | 2016-01-01 | version of api |
DiskId | BODY | string | Yes | d-bp67acfmxazb4p**** | cloud disk ID to be uninstalled. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}